package com.openecommerce.client.service.impl;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.openecommerce.api.service.DemoService;
import com.openecommerce.client.service.ConsumerService;

public class ConsumerServiceImpl implements ConsumerService {
	@Resource
	private DemoService demoService;
	
	private final Logger logger = LoggerFactory.getLogger(ConsumerServiceImpl.class);

	@Override
	public String consumer() {
		logger.info("###----> I'am the client of consumer!");
		return demoService.sayHi();
	}

}
